package cn.tool.dao.mapper;

import cn.tool.dao.pojo.AreaInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 胖树
 * @since 2022-10-08
 */
public interface AreaInfoMapper extends BaseMapper<AreaInfo> {

    @Select("select * from area_info where father_area_code = ${targetQueryAreaCode}")
    List<AreaInfo> selectByAreaCode(@Param("targetQueryAreaCode") String targetQueryAreaCode);
}
